import { axiosFactory } from '../axios';

const request = axiosFactory('http://47.103.58.127:8901');

const uploadPhoto = (file: FormData) => {
  return request('/api/photo/upload', {
    method: 'POST',
    data: file,
  });
};

export { uploadPhoto };
